Fix a crash-on-exit in the OpenNI2 driver

The OpenNI2 driver was using deleted iterators in `shutdown()`, which occasionally (but unpredictably) caused it to crash on exit.