Fixes several issues with ghost tables

* Do not cache user real tables
* Do not do anything if User#real_tables is blank since
  we can't always trust that query.
* Don't update table oid when that value is blank
  (user-deleted tables)