The database lock file is not writable. To lock or unlock the database, this needs to be writable by the web server.
From Documentation
The database lock file is not writable. To lock or unlock the database, this needs to be writable by the web server.