Added FileLocker class to lock files easily