Updated concurrency fix for using same monitor on the synchronized and wait logic