XX-11318 - set shard id to 0 for the global region.
XX-11315 - removing regions left shardId != 0, registrations are lost - set shard id to 0, instead of deleteing the registrations; move code to removeLastLocal, since we want to do this when we remove last local db from the regional DB.