The only way that I think that could even be possible, is if the pinhole causing the air leak somewhere in the brakes is closing up once things get hot, temporarily allowing pressure to build from multiple pumps, as even with air in the line pressure will still build, at least to a point, possibly enough to give you a poorly functioning rear brake.
I would rebuild the master cylinder and caliper, and buy a new stainless steel rear brake line.
Brake maintenance is important.
That is also not throwing parts at a problem, as if one part of the system fails from age, then the others need the same attention.