Fix logpersist.stop race condition

The steps did by `logpersist.stop --clear` is
 1. setprop logd.logpersistd clear
 2. setprop logd.logpersistd.size ""
 3. wait logd.logpersistd changed to be empty by logcated.rc

The problem is, logpersist.stop may modify size earlier than located.rc invoking logcat.
See comment 5 in the bug for detailed reproduce steps.

Bug: b/275518567
Test: `logpersist.stop --clear` should delete all log files in /data/misc/logd
Change-Id: Ifacfacc6486c2b98a67fb7d9587e6f588b84f179
1 file changed
tree: 9b7ef783b669b36b62c923a367599eb6c85f46a2
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/
  5. rust/
  6. OWNERS
  7. PREUPLOAD.cfg
  8. TEST_MAPPING