ARROW-16494: [C++] Add missing include that is making some packaging jobs fail
ARROW-16494: [C++] Add missing include that is making some packaging jobs fail

This PR tries to fix the issue that has been raised on some packaging builds like:
- [conda-linux-gcc-py310-cuda](https://github.com/ursacomputing/crossbow/runs/6321523101)
- [conda-linux-gcc-py310-ppc64le](https://github.com/ursacomputing/crossbow/runs/6321445819)
- [conda-linux-gcc-py37-arm64](https://github.com/ursacomputing/crossbow/runs/6322824420)
- [conda-linux-gcc-py37-cpu-r40](https://github.com/ursacomputing/crossbow/runs/6321760095)

Closes #13084 from raulcd/ARROW-16494

Authored-by: Raúl Cumplido <59d4da135a4a8d271cfab38e4b71ac8d4bb78fb2@gmail.com>
Signed-off-by: Sutou Kouhei <73218711cdd5d5c30ac66da3cc4d9d9204caf34b@clear-code.com>

apache/arrow,wesm/arrow,kou/arrow,kou/arrow,icexelloss/arrow,kou/arrow,icexelloss/arrow,apache/arrow,wesm/arrow,kou/arrow,apache/arrow,apache/arrow,icexelloss/arrow,apache/arrow,icexelloss/arrow,wesm/arrow,icexelloss/arrow,wesm/arrow,icexelloss/arrow,icexelloss/arrow,wesm/arrow,wesm/arrow,apache/arrow,wesm/arrow,wesm/arrow,icexelloss/arrow,apache/arrow,apache/arrow,apache/arrow,kou/arrow,kou/arrow,kou/arrow,kou/arrow,kou/arrow,wesm/arrow,apache/arrow,wesm/arrow,wesm/arrow,apache/arrow,kou/arrow,icexelloss/arrow,apache/arrow,icexelloss/arrow,icexelloss/arrow,apache/arrow,kou/arrow,apache/arrow,wesm/arrow,wesm/arrow,icexelloss/arrow,icexelloss/arrow,kou/arrow,wesm/arrow,kou/arrow,kou/arrow,icexelloss/arrow