thread_message_hook(+Term, 
+Kind, +Lines)As message_hook/3, 
but this predicate is local to the calling thread (see thread_local/1). 
This hook is called before message_hook/3. 
The `pre-hook' is indented to catch messages they may be produced by 
calling some goal without affecting other threads.