backend: attempt to sign multiple times
I don't really know what caused #2133, we assumed it's a glitch caused
by overloaded backend/keygen, and that simply running the /bin/sign a
second time would fix the issue.
We added `time.sleep` between failed attempts, so we need to mock some
unrelated tests to save some time.
Fixes: #2133
Merges: #2177