smbd: Split create_conn_struct into a fn that does not change the working dir