Core/SmartAI: Implement SMART_TARGET_CLOSEST_ENEMY (25)

Required for upcoming EAI to SAI conversion.

Closes #10482