Sherlock is maybe a sociopath his every action a means to an end but- the difference that is difficult to percieve is that it is not his end he is serving it is John's end and maybe, in that, it is his end because Sherlock's biggest fear is pain and to be without John is the most torturous pain of all.