Fix for logging deadlock due to __del__.

This is a first attempt to try and fix https://github.com/itamarst/crochet/issues/25

Another simpler approach would be to just log to stderr if the current thread is already locking the queue.