SERVER-15485 CanonicalQuery::canonicalize() manage lpq with auto_ptr