ArmPkg: Move IS_DEVICE_PATH_NODE for sharing