ensure work_queue_mutex is locked when signaling files_ready.

(Apparently) Fixes #182