save/restore track monitoring, rec-enable and rec-safe states