It sounds like people-pleasing to me, especially as you explicitly say that you are lonely and worry that making yourself less available as a shoulder to cry on will impact on your friendships. They're not healthy friendships if your role consists entirely of being everyone else's emotional outlet, and it sounds to me as if you have embraced the role of the being the communal agony aunt because you feel that's all you have to offer in friendships.
I think you need to take back some control of the conversational space. Do the talking yourself. Complain (or be enthusiastic about) your own life and problems. Do you, for instance, confide in anyone about the state of your marriage, or your worries about your child turning into your husband?
As a cautionary tale my mother is like you. All her 'friendships' take the same shape someone ill, in need, in crisis, vulnerable etc venting to her with no reciprocity. In my mother's case, she prefers it, because surrounding herself (entirely unconsciously) with people who are needy or in trouble in some way makes her feel needed.
She can't see it, however, and she's bitter and lonely in her late 70s, because she has no friends who phone up and ask how she is or invite her to dinner or to do something fun, because they only see her as a semi-invisible person to vent to, like the Samaritans. Her typical social interaction is a phonecall which she will always answer, even if it's in the middle of dinner or late at night, and which will consist of an hour or more of her saying 'Yes' and 'I see' and 'That's awful' and 'Poor you' with long silences when the other person vents.
She is completely baffled as to why I have good longterm friendships when I don't make myself generally available as a shoulder to cry on.
Don't become my mother. It's a very lonely place to be.