LegacyCommandline: support multiple successive context instantiations

This is needed to support fiji-compat's integration testing...

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