Workaround for 'database locked' messages.