components/bt: Fix the different size of name buffer allocation size(backport 3.1) See merge request idf/esp-idf!3588