libcli/smb: move {smb,trans2}_bytes_push_{str,bytes}() to common code