[sgen] Add worker index to the binary protocol entries