I would split up this test in multiple cases. 

e.g.

testLockTTL_beforeLockIsExpired
testLockTTL_afterLockIsExpired

I never liked test that test too many cases because it makes tests complex and from the outside you can't see which cases are tested.