fixed sql server lock test