Remove unneccessary static variable for main thread

We already have access to target_ which points to the main thread, so we
can use that to access the underlying pthread for the main thread.