Last time I got a clunking on a car when changing gear was just before a differential died on me.
It could be worn engine mounts too tho, as they'll let the whole lump/box assembly move along with your gear stick. Sometimes you can get tell tale lumps in your bonnet