AmigaOS: Fixed wrong type for len in write_socket()