alacenc: fix max_frame_size calculation for the final frame