Add check for shapshotrestore to not give false possitive for deadlock.