Stochastic averaging with a flattened Hamiltonian: A Markov process on a stratified space (a whiskered sphere)