Page-align the gap, if any, and add/use extent_dalloc_gap(), which registers the gap extent before deallocation.