Locks are freed by calling Unlock() method or by calling Lock() with mode CTLOCK_FREE. If you are freeing locks inside an active transaction, the locks on updated records will be freed when the transaction terminates.
TOCIndex