HTTPServer: use only asynchronous-signal-safe functions in the stop() function as it is called by a POSX signal handler.

We therefore replace the pthread_cond_var by an eventFD.