Ensure thread safety of global Here function (used for error mesage formatting)

At least this my attempt at doing so.

Closes #30