RESTRICT AUTOMERGE: maxfg: add mutex while logs the latest entry

during running of log_learning, capture buffer can be reset by other
thread and latest_entry can be null when calls maxfg_capture_to_cstr

Bug: 328065795
Change-Id: If78499debcdd64027bacd2fc1b72c54ccdd37222
Signed-off-by: Chungro Lee <chungro@google.com>
2 files changed