Fix ordering in package pinning

The pinning needs to come before the initialisation of package.el,
otherwise it tries to load the highest version (e.g the melpa version).