According to the specification of the lock method this method
Locks a record so that it can only be updated or deleted by this client.
In the case of delete, does this mean that we do the following:
Problem is if we lock, then delete then attempt to unlock then we should get a RecordNotFoundException in the unlock method as that is what the unlock method should return for a record that is marked as deleted. Anyone have any ideas as to how this should be written?