Use lock_shared_rec at Circuit::save()

subject.