Very bad 1st implementation of protecting messages in the process of being written from refreshes caused by external messages.
Please review.