Trying to open a database in read-only mode when a .lock.db file exists will now fail with a nice error message.