Wrap ProtoInputStream in autoclosable class

This is to ensure that we always properly close the input file we are using to read the proto data from.

Bug: 348142756
Flag: EXEMPT minor refactor
Test: atest TracingTests
Change-Id: I6a247b3bbbd0b9e97cc726a67a16a78cfd853385
8 files changed