cudata: make sure per-part buffers are allocate for g_maxCUSize

There are memsets which rely on the data being consecutive, and for this to
work they have to be the correct length. This fixes some X265_CHECK failures
and possibly some odd behavior with --ctu 32 or --ctu 16
cudata: validate subCU size against current analysis depth