libcli/wrepl: return the major version of the server in wrepl_associate()