unlock before emit signal avoid dead lock.