fixed pthread locking ifdef bug