Change rpc handling in rt module to handle badrpc returns

Change how the return from some rpc calls is handled in the rt module
in order to avoid spurious or misleading test failures.
Fix refactoring bug in wait_until_all_members function
s/badprc/badrpc
Merge branch 'bugfix/rt-rpc-fixes'