Yes, he was absolutely right
There was a learner motorbike going along at about 30mph... ...the guy was right in the middle of the lane and although the road was straight, there were cars coming in the other direction so overtaking was not possible. Normally if there is a slow motorbike/scooter, they are on the left and you can safely overtake them even with oncoming traffic because the road is wide enough.
I guess the feedback from the others says it all. Yes, he was absolutely right. It would have been NICE if he had pulled over when it was safe and allowed the following vehicles to pass. He might have felt more comfortable doing so too - it isn't pleasant having people breathing down your neck - but he was certainly in the right position, which is what you asked.
A more experienced rider would probably have been further out, and been pulling in as oncoming traffic came towards them. They would probably have been travelling as fast as you would have liked, though even then you can't be sure as they too may have had their reasons for travelling slowly. (My puncture repair kit, for example, advises travelling at no more than 25mph for the first 20 miles or so.)
There were lots of reasons why he might have been travelling slower than you would have liked, especially as he was a learner, but he had every right to be there and doing what he was doing.
It sounds as though you felt pretty fed up with him. Certainly enough to hold on to the feeling until you got home and at your keyboard to log in and post something.
Frustration is an interesting emotion. You might like to look it up on Wikipedia. Very often people who experience it do so because they project a malevolent intention onto the person or situation causing their frustration.
This biker might have been as keen as you to get to his destination; he might have had no other means of transport; he might have been feeling very uncomfortable, vulnerable and lonely. Given a choice he probably didn't want to be there; he almost certainly didn't want a queue of traffic behind him; and, for sure, he didn't get up in the morning and think to himself, "I know, I'll go and ride up and down the main road, until that bloke XX, gets behind me, that'll really get him annoyed."
Frustration is associated with high blood pressure, an increased risk of sudden cardiac arrest, stroke, and a variety of other serious disorders. It might be worth exploring why you experienced this and do something to adjust your approach to life.
Just a thought.
Cheers, Graham.