flacdec: fix buffer size checking in get_metadata_size()