The role of the boundary term in $f(Q,B)$ symmetric teleparallel gravity