Support file-locals in linked-buffer.

We now add content to the buffer before selecting the major mode. This
means that file-local-variables in the linked-buffer will be correctly
interpreted. This was important for org-el support.