Merge pull request #2909 from artokin/mbedtls_replay_check_fix_backport

Fix mbedtls_ssl_check_record usage with ext buf