Release patient lock before updating GP and practice.