Don't assume the supervisor is a registered process.

Lager crashes in `error_logger_lager_h.erl` when reporting about a non-named supervisor.

This patch removes the assumption that the supervisor name is always something like `{local, name}`, as it can also be a pid.