Add ‘ifndef … endif’ guard around thread locking macros

With the define guard the macros can be set via compiler options (‘-D’ or ‘-include’) instead of having to maintain a locally edited version of the ‘reginit.h’ file.
Merge pull request #23 from textmate/master

Add ‘ifndef … endif’ guard around thread locking macros