Ensure we pack ranges correctly for fence op without malloc'ing more memory