Bug 1068962 - Fix settings lock ownership array splice; r=bent

--HG--
extra : rebase_source : 0374ddeaffe0936ac7bb78aff0fc5b3a467c3bd1
Bug 1068962 - Fix task cleanup on settings locks where finalize has already been called; r=bent

--HG--
extra : rebase_source : 18992e6c2e0277d2866fe92048b52a0a55a55ee6