HPCC-9214 Include remoteSubFiles when replicating CResolvedFile on slave

Remote sub files were not being serialized/deserialized when
CResolvedFiles were copied to slaves as CSlaveDynamicFile.

subFiles and remoteSubFiles must have the same number of items or
issues will arise when invalid item numbers are accessed.  The remote
file descriptors were also not accessible on the slave nodes.

Also move a call to queryMatchingRemotePart to inside the if block where
the result is used.

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
Merge branch 'passRemoteSubFilesToSlave' into candidate-3.10.8

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge remote-tracking branch 'origin/candidate-3.10.8' into candidate-3.10.x

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>