Let JavaAgent also watch out for prematurely loaded EssentialLegacyHooks

The EssentialLegacyHooks class is now also patched, to configure legacy
environments to the specifications of the caller. Therefore, loading the
class too early causes problems.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>