Fixed warnings in parse_unit if parse_strict='silent'
This PR fixes an issue in gwpy.detector.units.parse_unit
with parse_strict='silent'
by adding a class attribute that controls whether warnings should be emitted. It's a bit clunky, but it works.