monotonic: Only use ctypes if available (celery/celery#2345)