Let udev settle between writing partition flags and formatting. (#1109244)

(cherry picked from commit 73ebba337b59a5c894619453535d6e3951c586d9)