Fix qid generation for root so you can dotdot out of a page directory (e.g. /n/wiki/sandbox). I think this is the same idea as Russ's recent patch to devsd.c.