There is no problem. The thread doesn't block if it has already obtained the lock earlier.