Don't unconditionally sync directory in fixate_user_ce_key()

Directory syncs can be expensive, so only sync the directory in
fixate_user_ce_key() if something was actually done, i.e. if at least
one key directory was deleted or renamed.  Previously, the unconditional
sync in this function was being executed whenever the CE key was
retrieved or stored.  Note that all the syncs needed when storing the
key already happen in storeKeyAtomically(); this one was unrelated.

Bug: 232452368
Bug: 251131631
Bug: 251147505
Ignore-AOSP-First: depends on other changes in internal master
Change-Id: Ib0f2b9e27cdd11e359a1618cddc1f5480bd2fd37
1 file changed