The SAP lock mechanism is described in:
The R/3 Lock Concept