modify recordlocktest.c