lib/util: add samba_runcmd_export_stdin() helper function