Make the in flight background process metrics thread safe
Make the in flight background process metrics thread safe

matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse