ensure work_queue_mutex is locked when signaling files_ready.

Fixes #182