fr_inaddr_mask fix 0 prefix

Don't depend on the behavior of shifting by 32-bits on a 32-bit type.
find_client: min prefix of 0 needs to work

Use signed loop counter to permit 0-1 to be <= min_prefix