ubifs: Fix assertion in layout_in_gaps()