HPCC-219 Not reporting errors due to locked files

First attempt at causing locks to fail early when marked as "held".

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