fdo#74516: Avoid excessive building of escaped sheet names.

The old code would build an array of escaped sheet names for all sheets
on evevery invokation of ScCompiler, which unfortunately slowed down these
"compile all formula cells" type methods, such as CompileAll(), CompileXML()
etc.  Let's avoid that and build or re-build the list only when necessary.

Conflicts:
	sc/inc/column.hxx
	sc/inc/table.hxx
	sc/source/core/data/document.cxx
	sc/source/core/tool/compiler.cxx

Change-Id: Iabf7c2374b728b6701da3aae7835cca2157f6c96
Reviewed-on: https://gerrit.libreoffice.org/7861
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>