Remove annoying DEBUG_PRINTF around pthread_mutex_(lock|unlock)
Format DEBUG_PRINTF with newlines, remove some unneeded debugs
Verbosely tests assertions messages
Linting fix