Interesting idea. Just brainstorming here, but maybe if you installed the auto groups extension (https://www.phpbb.com/customise/db/extension/auto_groups/). I think you'll have to find or create a custom rule that adds users who upload an avatar to a custom group. Set permissions so only that custom group has permission to post.