Nanofriction of polymers: the complex role of adhesion