To break mental health condition to potential new advisor?
First, congratulations on taking that first step towards recognizing yourself for who you are and seeking assistance to change yourself and get closer to becoming the person you would prefer to be. That is a huge step that many people are not willing to take, and I must applaud you for your courage.

Now, the issue at hand is whether you should reveal your current state of mind to your advisor. That's a delicate and deeply personal issue which can really only be left to your choice. That being said, if I were in your shoes, I would do so. In fact, I did exactly just that, both to my advisor during school and all my supervisors at work, and I benefited greatly from it. (Note that this is personal experience. If your advisor's personality is… less than accommodating, you may have a different experience.)

One of the most important roles of an advisor is to make sure that their students stay on track, both in terms of the scope of their research and their timelines. The last thing a professor wants is to be an inadequate advisor and as a result have a student take longer to graduate or turn out mediocre papers. Of course, this does depend on how busy the professor is, and they may ask other faculty for help or ask you to be mostly responsible for your own work (the last of which is relatively rare but not unheard of).

Psychological issues can cause many problems, including motivation. You can only benefit from having external motivation to keep you from deviating from your intended timeline, especially from someone you respect. At the same time, having that someone understand that you have difficulties will release you from the pressure of wanting to not disappoint that person, which ironically would have possibly caused you to stress out and as a result end up disappointing that person, then get stressed out from that outcome in a vicious cycle. Inform your advisor of your issues, and then together you can work out how to best manage your workflow. Perhaps you might need more frequent reminders, or require a little more detail with advice/instructions. Most advisors that I know love being helpful to their students, and hopefully your advisor will be the same. 

Please note that you wouldn't be using your current state of mind as an excuse. You are already self-aware of your issues, which means that you will recognize when you attempt to avoid doing something and are capable of changing the course of that behavior when it occurs. Having that external motivator could be the extra push you need to help you turn away from avoidance and back to getting things done.

As for the issue of disclosing your psychological condition, it is not required unless it is directly relevant to the matter at hand. In fact, as mentioned in the answer to the question you linked, it can be considered unethical to unnecessarily disclose such information. If your adviser does find it necessary, let them know about your concern and work together to word it so that it minimizes any undue negative connotations.