s4/pyrpc_util: appropriately decrement refcounts on failure