I am using scoped_lock with interprocess_mutex. I suspect that I have one of my threads trying to lock the mutex multiple times before it is unlocked. Is there a way to check and see if a mutex has already been locked by the current thread?