use the correct variable to hold the read lock id in wgdb tool