On the non-thermal electron-to-proton ratio at cosmic ray acceleration sites