Improved error message for thread-local class instance wrongly initialized.

The existing error message can give the impression that the thread-local
class instance itself must be const or immutable, not its initial value.
This revised version aims to make clearer what is wrong and how to solve it.