use reentrant implementation of memorylock service