Merge pull request #12521 from lioncash/reent Core: Make use of reentrant time utilities where applicable