Add systrace dump to the critical section of the bugreport

Use a separate thread to write the data to disk

Test: Flash a device. Enable logging. Perform some actions. Trigger a
bug report. Check the the WM trace is included in the bugreport

Change-Id: I102bc4afab5efff361633d75c09af1df4a11812e
2 files changed