SERVER-15847 Make sure producer thread wakes up and terminates when we're shutting down