Ensure the lockfile directory is writable; commit synced with https://github.com/cusu/bob-gui/commit/25a0867d9d498330b361403d7b085c0b430f1ed5