update reentrant-lock