[PATCH v8 06/13] bootstd: Adjust code ordering to work around compiler quirk