[PATCH v10 6/9] bootstd: Adjust code ordering to work around compiler quirk