Removed race condition on lock button.