Avoid bogging down main thread with excessive LLInstanceTrackerBase::getInstances calls.
Template fun to compress our legacy menu<->floater glue.