The file system 
Lock (obtained from 
Lock(), 
DupLock(), 
CreateDir(), etc.) is removed and deallocated.
  
    You should not UnLock() Locks which you did not obtain through 
ParentDir(), 
ParentOfFH(), 
DupLock() or 
Lock().
    Passing zero to UnLock() is harmless.
    UnLock() leaves the value returned by 
IoErr() unchanged. What 
IoErr() returns before calling UnLock() will be the same value 
IoErr() will return after UnLock() has been called.