fix inuse lock