Extraction of gen_server2 from rabbitmq/rabbitmq-server.