debugfs: fix race in u32_array_read and allocate array at open