Trousers: Fix resource leakage in ScopedTss* objects

* ScopedTssObject (and all its template instantiations) was
  effectively always leaking the associated resource by forgetting
  to initialize the TSS_HCONTEXT.
* Replace silent resource cleanup ignoring when TSS_HCONTEXT is zero
  with NOTREACHED - i.e. log on leaking when under Release mode,
  and crash when under Debug mode.

BUG=chromium:821825,chromium:806788
TEST=existing tests

Change-Id: Ie2c45a20412af09b543869167007ad4ba08ac4ab
Reviewed-on: https://chromium-review.googlesource.com/959964
Commit-Ready: Maksim Ivanov <emaxx@chromium.org>
Tested-by: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: Andrey Pronin <apronin@chromium.org>
1 file changed