Socket::close() now supports an additional parameter for defining the shutdown type

Fork of Socket by mbed official