ASACORE-1254: Use of socket_open() is incorrect

 - socket_open() was returning AJ_WSL_SOCK_MAX for error and
   all of the checks aftewards were for INVALID_SOCKET.
 - Now socket_open() returns INVALID_SOCKET in case of an error

Change-Id: Iaf35dcf50e6f7a1aed1a68516248164279b14dde
Signed-off-by: James Prestwood <jprestwo@qce.qualcomm.com>
Merge "ASACORE-1254: Use of socket_open() is incorrect" into RB14.12