Added support for FileLock to be used as the function decorator.