Crossing through the Hijr enclosure might shorten the walking distance, but the required tawaf route must circle the Kaaba outside the enclosure.
The Hijr has a relationship to the Kaaba's original foundations. Tawaf follows a prescribed path, not whichever shortcut is shortest.