Check whether JVM support thread measure before measuring.

Add ThreadMXBean.isCurrentThreadCpuTimeSupported before calling
ThreadMXBean.getCurrentThreadCpuTime().