fix bug in testing release lock not held by all threads and add the test of require lock twice
merge threadtest conflict