Locum medics ‘crucial to the NHS in Wales’