Added support for samba next_rid counter.