add a pthread time lock shim
use existing system-agnostic time functions