PROTON-611: Don't allocate frame_max bytes immediately, grow by factors of 2 until
you get to the max - else a large frame size can blow away 4Gb of memory!