On the integral Hodge conjecture for real threefolds