Locks are released by the OS when the process exits.