Integrate selfrando into tor-browser-build.git

We should integrate the changes from #20683 (moved) into the rbm based build.