fstrm__pthread_cond_timedwait(): Add missing mutex calls

pthread_cond_timedwait() must be called with the mutex locked, and
re-acquires the mutex upon return.

Fixes #5.