Fixed timed event wait on Linux.

Was causing an error message and the DeadlockDetect didn't work.