Decoherence-protected GHZ states of a nuclear spin ensemble surrounding a solid-state qubit