It all goes back to the basic rules mentioned here (answered) Install /e/ on FP5 with newer Security Patches.
- Android SPL date locked into index when phone was unlocked.
- Android SPL date of the system you intend to lock.
That comparison is critical.
What happens while the phone is unlocked does not come into the equation.