Have you closed the sqlite after the fix?
If yes, but the error is still there, then the temporary solution would be to restart the container. However, if disk is slow, it could be locked again.
The permanent solution would be to move the databases to the SSD, if you have one: How to move DB’s to SSD on Docker