configure.ac: check tv_nsec field in struct stat

This check will automatically set the correct NO_NSEC setting.
configure.ac,trace.c: check for CLOCK_MONOTONIC

CLOCK_MONOTONIC isn't available on RHEL3, but there are still RHEL3
systems being used in production.  This change makes compiling git
less tedious on older platforms.