Change when libsocket check happens during configure to fix some cases w...

...here it cause lfs to not be detected correctly.