modified file lock to spinlock