fixed issue on os x with deadlock and illegal instruction __mtx_droplock, pthreads on os x doesn't like the order when unlocking a mutex in the destructor...figure out later but for right now its okay to remove the mutex lock and unlock