NXP-12263: add wait functions and postRestore callbacks to safeEdit