update_container: Fix double unlock