Mask using detector ids.

This is to get around a bug with LoadMask/LoadInstrument
that always seems to load the newest IDF, which is the wrong
one in this case.

refs #8009
Merge branch 'feature/8009_basis_diffraction_idf' into develop