lock object
suspend thread for a while.