It would be lovely if somebody took the challenge and made UniRec functions and macros thread safe.
Since currently they are not and it could be really confusing for newcomers.
Locking sections with initialization and deletion of UniRec templates and records is not the biggest issue, but the worst part comes when using TRAP_RECEIVE macro.
Eternal gratitude to whomever who solves this problem correctly and elegantly.