torture/rpc-winreg: General fixes for a number of tests.