Bug 844759 - Use atomics for backgroundFinalizeState r=terrence