If the AHJ cited 110.3 (B), then he is absolutely correct, IMO. I know it seems a bit ridiculous but rules are rules.

If the pancake box is ceiling fan rated, then screws for mounting the box came with the box. If you don't use them they you are violating the manufacturers specificiations.

This NEC rule applies to all UL listed electrical equipment.