In a food processor, combine the walnuts, oats, garlic, ginger, onion, and jalapeños and pulse a few times, until the walnuts and onions are evenly chopped, 5 to 10 seconds. Add the beans, cilantro, cumin, oregano, chili powder, salt, pepper, and flax seed and process in 5-second intervals, until most of the beans break down. Do not puree-there should still be some whole beans for texture.