ensure work_queue_mutex is locked when signaling files_ready.

Fixes #182
Merge pull request #224 from jmesmon/fix_182

ensure work_queue_mutex is locked when signaling files_ready.