Em uses a piece of wax paper as a gasket between the jar lid and the glass jar that she puts the brown sugar in for our morning Oatmeal/Porridge. This keeps the sugar granular and not like a rock, but after a while, even that does not work.
She has bought one of those unglazed clay pottery teddy bears that you soak in water then put in the jar. She says that works about the best.