Fix op timing when PGPROFILING in use.

PGPROFILING did not work correctly within thread monads different from the identity.