Place 4 cups (8, if doubling) of chicken stock in a medium pot and bring to a boil. DO NOT SALT (if you have regular-sodium stock)!
While stock is coming to a boil, grab a medium bowl and fill it with well-salted ice water.
Drop green beans in boiling stock and cook for 3 minutes.
Drain cooked green beans and immediately plunge into salted ice water. Give it a nice couple of stirs to cool it off and move the salt around. Keep the beans in the ice water and set aside.
Melt butter in a large pan over medium heat. Once melted, add shallot and a pinch of salt and pepper. Cook until translucent, a couple minutes.
Add mushrooms to shallot with a pinch of salt and pepper. Cook until mushroom have completely shrunk and let out their water, about 10 minutes (most of water from shrooms should be gone; drain excess if not).
Next, add garlic to the mix and cook another minute. The smell should be intoxicating!
Ok, to our shroom mix, throw in flour and cook for 2 minutes, stirring constantly.
Add the remaining ¾ cup (1.5, if doubling) chicken stock to the pan and cook for 1 minute, stirring often.
Pour in heavy cream and cook until sauce has thickened, about 10 minutes, stirring often.
Turn off heat and drain green beans. Add beans to the sauce along with parmesan, nutmeg, lemon zest, and ⅓ cup onions. Give it a good stir and season to taste, if needed, with salt and pepper. Pour into casserole dish.