Adding a thin ring to the rear of the lens, then bolt the mount onto that ring is of course feasible. I would hardly call that an extension ring though, rather a modified lens. There might be additional issues with the cabling to the contacts.
Shimming the mount must be done on the lens' side. Due to the position of the mating contact surface, only the tiniest shim up to 0.1mm can be used in the camera's mount, lest all electronic communication stops working. For the lens bayonet, up to 0.6mm might be added, but anything more again breaks the communication to the camera.
Don't mention this idea to the Nikon engineers designing the optics of the Z system, as they would cringe by the thought of their brainchild optics being abused. Extension is *never* without negative side effects and the only way to mitigate this issue is having the extension incorporated in the original optical design.