Builds controller: add a test for restarting builds, fix restarting builds

Created by  Graham Christensen  on October 25, 2021
GLNY4IAXHOR32ZELFIVCRJTDSCXB7HYURRWRHSEUB5GOWNQJ5RJQC
In channels
upstream
main
Change contents