Are you trying to solve a problem where some external device is affected by the GPIO output status during boot? Before the GPIO output is set to it’s desired at-rest state?
Rather than changing the GPIO operation via firmware, can you apply a delay to the power supply of the external device?
For example using a MOSFET with delay.