Fix rinoo_socket_readb & rinoo_socket_readline.
 Wrong usage of buffer_extend led to unexepect error
 when reading several times a socket using the same buffer.
 Add a unit test to cover this.