If you have a directory somewhere that does support file locking, you can change the environment variable for the cache directory to that directory, e.g.:
$ export HF_HOME="/path/to/directory/with/file/locking"