Ensure we wait for all messages to be traced before terminating the trace

Flag: NONE bug fix
Test: atest com.android.internal.protolog.PerfettoProtoLogImplTest
Change-Id: I49684b903ecfd5625074e64f30db41500e962d04
1 file changed