Is it appropriate to share the distribution of grades for a small class?
No, for exactly the reason you give. If just a couple students share their grades with each other, it becomes trivial for others to be discovered by process of elimination.