ENGINE-1844, added more logs + avoid a single thread to lock 2 times