HPCC-12149 Add back in call to record a library used by workunit

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #6425 from ghalliday/issue12149b

HPCC-12149 Add back in call to record a library used by workunit

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>