use tryLock instead of lock, whick is blocked.