do you have problems with sensation,temperature of the limb, sweating of the limb, hair growth of the limb etc. apart from being locked does it look different ( eg colour, swelling, muscle tone etc)
if the consultant feels there is no ortho problem it could be something like RSD (reflex sympathetic dystrophy) known also as complex regional pain syndrome. has anything like this been suggested?