creating in a loop instead of waiting for active

since it is possible that even after getting active status, subsequent
call to create/delete results in PENDING_UDPATE error.
retry_times implemented

This function helps to have a retry loop with fixed number of times
instead of timing out using timeout_deferred. This way the work being
done is never cancelled when in progress
Merge branch 'retry_times' into lb_wait_active
using retry_times
tried with tests but not working :(