[PATCH v1 2/7] rpc: Separate out socket code into another static lib