librpc/rpc: correct the chunk_size depending on the signature size