Similarly to Linux, implement "Current thread CPU time measurement"
functionality.
Tested with recent UniFi controller (not yet in ports, that requires
OpenJDK 17+) which would not run properly without this functionaoity,
giving the following error:
ERROR [dispatcher] - Servlet.service() for servlet [dispatcher] in
context with path [] threw exception [Request processing failed; nested
exception is
com.google.common.util.concurrent.UncheckedExecutionException:
java.lang.UnsupportedOperationException: Current thread CPU time
measurement is not supported.]
with root cause
java.lang.UnsupportedOperationException: Current thread CPU time
measurement is not supported.