tally: Adapt get_max_bucket to Samba coding conventions