Add sp_osrfinalize spesh op.

Used to handle logging runs through the loop, and will trigger the
final optimization afterwards.
Convey "are we doing OSR" deeper into spesh.