Ensure that wrapper function for decorator is available as __wrapped__ via the decorator.
Add example as a test for a thread synchronisation decorator.