Kotlin : Call of notify() in synchronized block