Adds tests for multiple lock acquisitions