FDEventMonitor: Don't deadlock when waiting on the thread to stop