The SNP government needs to improve recruitment and retention of NHS staff to avoid spending millions on expensive locums