libFLAC: Add metadata size checks to FLAC library