Fix potential file descriptor leak

:Release Notes:

:Detailed Notes:
Call to socket(2) can return non-negative file descriptor on success.
If consequent code fails, the descriptor 0 will not be closed.

:Testing Performed:
Trivial change. Build succeeded.

:QA Notes:

:Issues Addressed:
[CID-22564] 11. off_by_one: Testing whether handle "fd" is strictly greater than zero

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: Ic8c5c8b6973031ccfb6a4bab1a5812cbc9ec0441
Reviewed-on: https://g2g.palm.com/3889
Reviewed-by: Build Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Mykola Kryvonos <mykola.kryvonos@lge.com>
Reviewed-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>