Avoid reentrant locks