publish retry_n_times function

Signed-off-by: Alexander V. Nikolaev <avn@daemon.hole.ru>
process: alias socket.sleep
process: rewrite retry_n_times in tail-recursive way

As suggested by Alexander Gladysh
process: Add documentation for retry_n_times
Add test for retry_n_times
Regenerated