dhandle locking during close