Fix Wdeprecated-copy-dtor warning in ScopedH5XHandle
This MR fixes the -Wdeprecated-copy-dtor warning in ScopedH5DHandles macros, as reported in #18585
Edited by Francois Mazen
This MR fixes the -Wdeprecated-copy-dtor warning in ScopedH5DHandles macros, as reported in #18585