Prevent unrelated Database objects from being mixed.

In a coming version, DbObject will be used to stash a freelist of
CursorObjects. When that happens, the penalty for intermixing databases
from unrelated envs might be a crash or worse. So prevent it here.