logd: Release() then wait for reader to exit in PrintAllLogs::End()

Otherwise, the reader thread will still be active and hold references
to logs when ~PrintAllMessages() destroys its LogBuffer instance,
which then triggers the CHECK() in ~SerializedLogChunk().

Test: ReplayMessages print_all_logs succeeds without error
Change-Id: Icee69deafa498de4ccf4d0c5eff19bef6261927e
1 file changed
tree: 03ed92df426b871ed6677fdb1de6d4373919c532
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/
  5. PREUPLOAD.cfg