Example of OTP deadlock via the application controller.
In OTP, the application environment is handled via a ETS table, which
is accessed via the application_controller
process. Whilst reading
an environment variable is implemented as a mere lookup operation,
writes are serialized through the application controller.
In other words, it is not possible to set an environment variable
from a terminate/1
callback in a gen_server which traps exits,