Fix sandbox #reload! exception with SQLite3

Fixes #11834

Skip un-needed db actions when reloading a sandboxed console to
prevent disconnecting the sandbox transaction with sqlite3.