added script for direct reentrant lock