add rwlock for rtable