An Emulation Layer for Dynamic Resources with MPI Sessions