Add test and fix for locknode in root (bad idea but people do it)