acquire a lock when you edit text