Split native host pinning into standalone pin_memory op (#8236)