I'm reading Thomas Friedrich's "Dirac Operators in Riemannian Geometry," where the following is stated (in the Remark on page 42 before section 2.2 begins, if anyone is following along with the reference at home):
"[L]et $P\rightarrow X=\mathbb{RP}^2$ be an $Spin(n)$-principal bundle. Since $$\dim(\mathbb{RP}^2)=2, \: \pi_1(Spin(n))=0, $$ this bundle has a section and is thus trivial."
He also remarks that, "The same effect occurs if we replace $\mathbb{RP}^2$ by an arbitrary 2-dimensional manifold."
Now, I am aware of the thread Every principal $G$-bundle over a surface is trivial if $G$ is compact and simply connected: reference? in which it is shown using quite a bit of machinery that
If $G$ is a compact and simply connected Lie group and $\Sigma$ is a compact orientable surface, then every principal $G$-bundle over $\Sigma$ is trivial.
(Aside: It seems from the answer given that one does not need the orientability hypothesis on $\Sigma$ which is relevant to the remark in Friedrich, as $\mathbb{RP}^2$ is not orientable.)
This is shown using classifying spaces and shows directly that the bundle is trivial. But Friedrich's phrasing seems to indicate that we could show the bundle to be trivial by constructing a section of the bundle, i.e. by lifting the identity map $X\rightarrow X$ to $X\rightarrow P\rightarrow X$. Is there some (restricted) lifting criterion for principal bundles that I am unaware of in this case that produces this section? Any insight or references are appreciated.