added regression tests for trying to reproduce a locking issue identified with external DBs - not able to reproduce the issue yet