Adds static TLS data to support drreg routines being called during process init before thread init has happened.
Also adds support for drmgr_current_bb_phase(), which is called by drrreg, being called during process init.
Adds a test case to drreg-test.
Fixes #2910 (closed)