Fixed a race between bind() and stop()
There is a race on the acceptor between bind() and stop(). It is fixed by synchronizing the two methods. Additionally, stop() marks the server to be stopped now. Subsequent calls to start(), bind() or accept_and_run() return immediately until reset() is called.
Edited by quobert