Characterizing the flow and turbulence structure near the last closed flux surface in L-mode plasmas of ASDEX Upgrade