Environment as Policy: Learning to Race in Unseen Tracks