scudo: Move the management of the UseMemoryTagging bit out of the Primary. NFCI.

The primary and secondary allocators will need to share this bit,
so move the management of the bit to the combined allocator and
make useMemoryTagging() a free function.

Differential Revision: https://reviews.llvm.org/D93730

GitOrigin-RevId: faac1c02c802048efa17f8f6cda8f39b5584f0c6
Change-Id: Ic2f5157043ae2ad69fdeced46669f8814feb49b8
5 files changed