Handle deletion (and other) concurrency conflicts by explicitly locking main moc during sensitive operations
make sure main moc gets unlocked if bg has no changes