Use Filelock gem for file locking