subsystem: modify buf used in os.hostname from 255 to 256

1. SUSv2 gurantees hostnames are limited to 255 bytes, if the size of buffer is 255, the last char will be truncated in some platforms
2. If the hostname length exceeds the buf length(255), there may not contain null char in the buf, the following String::New will have problem