Make lazy_query take a u32

That's what the backend accepts so larger values would just overflow.