Edit 1: I think I just understood you question: you are actually
trying to calculate some sort if “internal” inductance, i.e. the
contribution to the inductance of only the field inside the conductor.
When calculating the flux, you have to choose a closed path over which
you would want the electromotive force, and then integrate the magnetic
flux over the surface limited by this path. Normally the path would be
the whole electrical circuit, but since you are only interested in the
contribution of the internal field, you chose the return path along the
edge of the wire, which is fine. Now you have to choose the forward
path.
The forward path should be along the lines of current. The problem is
that, different lines of current give different fluxes. Then you can
calculate the flux as a function of where, in the conductor's
cross-section, you take the forward path. But since you are using the
low-frequency approximation (no skin effect, then uniform current
density), you can just average the forward-path dependence over the
whole cross-section. Then you get the missing factor two.
A somewhat different argument is given in this old bulletin of the
Bureau of Standards:
the author instead weights individual flux lines as per the fraction of
the conductor they enclose. This gives the same factor two.
Edit 2: As requested, a few clarifications.
By “integrate the magnetic flux” I really mean “calculate the magnetic
flux”. I used “integrate” because the calculation involves an integral:
$$
\phi = \int_A \mathbf{B}\cdot\mathbf{n}\; \mathrm{d} A
$$
where $\mathbf{n}$ is the unit normal to the surface. It's not exactly
the same as “integrate the magnetic field” because of the dot product
with $\mathbf{n}$.
I talked about “forward path” and “return path” because, if it's not an
antenna (as the low-frequency approximation suggests), a wire is usually
part of a transmission line which consists of at least two conductors.
Assume for example that you use a pair of wires to connect a source to a
load, like in the figure below (I hope everyone can see Box Drawing
characters):
╔════════╗ ╔════════╗
║ ╟→→→→→→→→→→→→→→→→→╢ ║
║ source ║ (flux here) ║ load ║
║ ╟←←←←←←←←←←←←←←←←←╢ ║
╚════════╝ ╚════════╝
where the arrows represent the electric current. I assume the wire you
are interested in is the top one, which I called “forward path”. The
bottom wire, which I called “return path”, brings the current back to
the source. Taken together, these two wires form a loop and the current
will make some magnetic flux through the loop. Then, if you try to
change the current, some electromotive force will appear because of this
flux, and you will be able to model this as the effect of an inductor
along the transmission line, as below:
╔════════╗ ╔════════╗
║ ╟────(inductor)───╢ ║
║ source ║ ║ load ║
║ ╟─────────────────╢ ║
╚════════╝ ╚════════╝
This is the self inductance of the transmission line, and is what I
first thought you where trying to calculate.
The self inductance of a bare wire is somewhat ill-defined. Well, it
is defined, but with some assumptions about the surface over which to
integrate the flux, and it scales as $l\log\frac{l}{r}$, which makes
it's value per unit length diverge logarithmically when considering an
arbitrarily long wire, as pointed out by Zassounotsukushi and mmc. Once
you add the second wire, the surface over which you have to integrate
the flux is clearly defined, and the inductance of the line scales like
$l\log\frac{d}{r}$, where $d$ is the distance between the wires. No more
logarithmic divergence with respect to $l$. On the other hand, it
depends logarithmically on the distance between the wires, therefore you
cannot just assume that the return path is just far enough to be
ignored. BTW, the return path is not necessarily a wire, it could be,
e.g., a ground plane.
For the particular calculation you are doing (only the contribution of
the field inside the conductor), you use a very narrow loop where the
return path is replaced by a line along the edge of the conductor, in
order to enclose only the internal field.
Original answer below, which is somewhat bogus, as I thought you
where after the total self-inductance (including external field) per
unit length of an infinite wire. The comments of Georg refer to this
original version.
You cannot assign an inductance to a long wire alone: you have to consider the whole circuit. The current carried by the wire has to come back in some way, and you need to know how far from your wire is the way back.
Assume for a moment that the wire is actually the inner conductor of a coaxial cable. You can easily calculate the linear inductance of the cable as a function of the inner an outer conductor radii. Now make the outer radius go to infinity and you have a diverging self-inductance! This means that in practice you can never assume that the way back is “far enough” to ignore it.