Ensure that thread is required when using Mutex on Ruby 1.8.7

This used to be loaded by, I believe, Rake but not anymore.