A few corrections, one that removed an un-needed object, the other preventing a segfault when destroying a mutex that was already NULL.