Regarding codejail, I have gone through all the Links & details you have attached, codejail repo has already this issue(Link) opened, as you noted.
I also agree that this(Link) is a best-practice solution for above codejail issue.
And it would be good to add this part in tutor documentation, that start using tutor-contrib-codejail if using tutor as mentioned in above link although its not an official tutor plugin. These kind of FAQs can be added to a separate section i.e.unofficial tutor plugins & apps in tutor docs.