source4/libcli: Only set ctemp set on success