M2-brane flows and the Chern-Simons level