Fix potential endless loop in kswapd when compaction is not enabled