Use uintptr_t for the return value of `clone_ptr` to match reality