Sir would seem to be completely acceptable. Maybe the officer would have liked it better if he was addressed as “boy.”
Good thing Van Jones didn’t call us “macaca” He’d be out of there.