duplicated_lock = DupLock( lock )
      
    BPTR DupLock(BPTR)
    
 
  
    DupLock() is passed a shared file system Lock.  This is the ONLY way to obtain a duplicate of a Lock... merely copying the pointer to the 
Lock is not allowed.
    Another 
Lock to the same object is then returned.  It is not possible to create a copy of an exclusive Lock.
  
    DupLock() may show unpredictable behaviour if the 
ChangeMode() function was used with a mode which is none of SHARED_LOCK or EXCLUSIVE_LOCK.