Abstracted nds2.connection.set_parameter calls to function
This PR introduces a minor improvement to gwpy.timeseries.io.nds2
with calls to nds2.connection.set_parameter
abstracted to a new method, mainly so that error handling/warnings are only handled once.
This introduces no changes to the logic in the calling fetch
method.