It is essentially impossible to work as a locum as an IMG because of the requirement to be supervised in your initial registration period. Certainly, after you have obtained general or specialist registration you may then be able to do locums. But you may still be limited because of visa requirements.