intrusive MSQueue refactoring (not tested)