XWIKI-10016: Fix a security issue that may allow recently revoked rights in rare circonstances