Fix #445: Signed/unsigned problem with MySQL 5.5

This should work fine as long as page trees aren't nested to several
dozens of levels...