Deglobalize default threshold value, and fix initialization of threshold variable.
Fix Refcounted docs - refCountedEnsureInitialized and refCountedIsInitialized did not exist.
Merge pull request #1379 from AndrejMitrovic/FixupRefcountDocs

[trivial] Fix Refcounted docs
Call thisTid to initialize first thread's message box, bypassing checks against setting thread-local variables from a shared static constructor.
Merge pull request #1369 from AndrejMitrovic/IsemailFix

Deglobalize default threshold value, and fix initialization of threshold variable
Merge pull request #1376 from yebblies/issue4923

initialize first thread's message box in a normal static ctor, to work around requirement that thread-local variables cannot be set from a shared static constructor.
Fix Issue 10510 - enforce should take any callable function without regard for calling conventions.
Merge pull request #1382 from AndrejMitrovic/Fix10510

Issue 10510 - enforce should take any callable function