Add magic number for pinning only for a segregated solve

Having a separate number to normal pinning allows us to easily undo the
segregation at the end of the solve.
In explicit time stepping move f calculations inside actions_before...

Otherwise we can have issues with segragated solves where values aren't
correctly pinned for the first f evaluation.