Use TEST_ERROR_FMT() rather than strNewFmt() in common/lock module.
Use TEST_ERROR_FMT() rather than strNewFmt() in common/lock module.

These tests were likely written before TEST_ERROR_FMT() existed.

pgbackrest/pgbackrest,pgbackrest/pgbackrest,pgbackrest/pgbackrest