[entropy.locks] make ResourceLock reentrant wrt to individual threads only