LaTeX writer: Always create labels for sections.

Previously the labels were only created when there were links to
the section in the document.

Closes #871.