Enable thread protection

This patch enables thread protection for MonoMac similarly to MonoTouch. The monomac patch is associated with an accompanying patch to maccore.