fix stupid deadlocks on account of weird thing happening when you destroy a mutex *grumble grumble*