As a condition on $E$, you need that $E$ is finite-dimensional (or, if Hausdorffness is not assumed, that $E/\overline{\\{0\\}}$ is finite-dimensional).
Since $F$ is dense in $b(E',E)$, it separates points on $E$, and thus $\sigma(E,F)$ is a locally convex Hausdorff topology, and we have
$$\sigma(E,F)' = F; \quad \sigma(E,E')' = E',$$
so if $\sigma(E,F) = \sigma(E,E')$, it follows that $F = E'$.
That means to have $\overline{F} = E' \Rightarrow \sigma(E,F) = \sigma(E,E')$ you need a condition that implies $\overline{F} = E' \Rightarrow F = E'$. The only such condition, as far as I'm aware, is finite-dimensionality.