rework ntp_offset.sh

This changes the plugin so that it:
- computes correct average values,
- emits the number of current active time sources as a metric,
- exits with 1 if the average offset can't be computed for any reason