[bluez] Fix long local name handling. Fixes JB#16624.