HPCC-11339 WsWorkunits should respect compulsory flag

When using ReferencedFileList to list files used by a query, if a
package is assigned that is compulsory, the files should not be
resolved in DFS.

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
HPCC-11339 Remove unnecessary scoping on call to isCompulsory

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Merge pull request #5910 from afishbeck/compulsoryFileList

HPCC-11339 WsWorkunits should respect compulsory flag

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>