The High Energy X-ray Probe (HEX-P): Probing the physics of the X-ray corona in active galactic nuclei