FindHDF5: use cmake policy stack with CMP0074 for HDF5_ROOT
Refactoring to use CMP0074 for HDF5_ROOT. Behavior is unchanged.
A Gitlab security update will be applied on March 29th, between 8am and 10am, EST (UTC-05:00). This site may have intermittent delays during that time.
Refactoring to use CMP0074 for HDF5_ROOT. Behavior is unchanged.