First, there's no pain "barrier." You think of the level to which you refused to go as a barrier, but it's really just steadily increasing pain. If you had pushed harder, there would still be another barrier. In all-out races shorter than a half marathon or so, pain is always what holds everyone back. It's a buffer that kicks in a bit before your physical limitations to stop you from damaging your body. (I'm excluding from my generalization both the extreme sit-and-kick races and very long races like the marathon, because SOMETIMES in very long races there are muscle issues that hold an athlete back regardless of whether they're in a lot of pain.)
Second, you have to get familiar with pain. This sounds macho, but it's really not. Basically, any stimulus that your brain receives will get dulled the more you receive it. It's why people develop tolerances to psychoactive drugs. It's why thrill seekers do more and more dangerous stunts. It's why I have to remind myself NOT to ride my motorcycle at 130 mph, even though the first time I rode I was scared $hitless at 40 mph. When you practice running really hard, you literally start to experience less pain.
Your increased familiarity with pain has a more conscious or emotional component as well. Although you will literally experience the stimulus less as you practice, you will also teach your conscious brain not to freak out. Part of what makes the pain of running hard so bad is that it can be a bit scary. You freak out and think you're going to fall apart. As you get used to running hard, you start to get more detached. You think about the pain more as data. You can remember that you've felt the same way before and everything was fine. And you realize that what you thought was pain is really nothing at all compared to the pain of a serious injury, a burn, or something similar.