HPCC-219 Not reporting errors due to locked files

Changes in response to code review.

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