Bug 968956 - DMD: Acquire state lock before clearing reports. r=njn.

DONTBUILD because DMD is NPOTB.

--HG--
extra : rebase_source : c3e5b2f27d4983c5802f1a38c8accc31a2b07fa2