<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def isLocked(name):

 """Determine if the lock of the given name is held or not.
 
 @type name: C{str}
 @param name: The filesystem path to the lock to test
 
 @rtype: C{bool}
 @return: True if the lock is held, False otherwise.
 """

    l = FilesystemLock(name)
    result = None
    try:
        result = l.lock()
    finally:
        if result:
            l.unlock()
    return not result