Changes to TCP server for updating lock status.