Renamed getInode to getInodeWithLocks and made addChildren synchronized