Fix an extent [de]allocation/[de]registration race.

Deregister extents before deallocation, so that subsequent
reallocation/registration doesn't race with deregistration.
1 file changed