Fix a couple of cases where an attempt is made to lock an already locked
mutex.
2 files changed