This sounds like a bug. Using 4.2 and a new “Basic Code” project, I was able to #include "SocketSubsystem.h"
without errors after adding “Sockets” to the list of PublicDependencyModuleNames. Can you reproduce this problem with a new project? Are you using 4.2?