Speed up Query destruction
Speed up Query destruction

Fix the one place where duplicates were being inserted into all_nodes so that
the destructor doesn't have to check for them.

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core