Fix EZP-21281: Warning: Could not generate user hash ! Fallback to anonymous hash

User hash generation was possible only if client IP was local (yeah I know, it looks stupid :sweat:, but makes sens when using a real reverse proxy like Varnish).

This patch adds a new check on a specific request attribute `internalRequest` which is added before forwarding the generation request to the kernel.