Implement a new function GETNODEMAP in libctdb.