Add resources in the same thread while doing HiveServer session restore

Tests passing. No new tests added since there's already test added for session restart as part of #119