Updates lock in DB when status update from lock received.