James 4:5 has always been interesting in relation to this topic... I'll post a few different translations..
NIV
5Or do you think Scripture says without reason that
the spirit he caused to live in us envies intensely?[
a]
NASB
5Or do you think that the Scripture (
I)speaks to no purpose: "[
a]
He jealously desires (J)the Spirit which He has made to dwell in us"?
KJV
5Do ye think that the scripture saith in vain,
The spirit that dwelleth in us lusteth to envy?
ESV
5Or do you suppose it is to no purpose that the Scripture says,
"He yearns jealously over the spirit(E) that he has made to dwell in us"? 6
NKJV
5 Or do you think that the Scripture says in vain,
“The Spirit who dwells in us yearns jealously”?
So it looks like there is for sure some kind of jealous longing on God's part for us. Don't know if that means he can get lonely .