refactor lock status to use better socket comms