Add the check_trailing_bits_after_symbol_coder() function.
Add the check_trailing_bits_after_symbol_coder() function.

Refactor the code at the end of decode_tile() into a new
check_trailing_bits_after_symbol_coder() function. This code
was originally added in
https://aomedia-review.googlesource.com/c/aom/+/53184.

Verify nb_bytes is valid before adding it to p_begin. Add
comments to explain the code.

For consistency, also change av1_check_trailing_bits() to
return -1 (instead of 1) on failure.

Change-Id: Ie4c7f64ab2f993977127fee71b6f4330ba5526ad

GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom