When <locktype> 0 was used, a READ NEXT operation on a locked record returned an error, which is incorrect. When <locktype> 0 is set, a READ NEXT operation should always return success if there is a next record.
When <locktype> 0 was used, a READ KEY operation on a locked record returned an unexpected value of 0.
The logic has been modified to correct both of these situations.