Again, of it's own accord, the action of raising flaps in a turn is of no consequence. If one raises the flaps when too slow or at too high an angle of attack in level flight, one may stall or descend. If one does the same in a turn, one can expect the same result. The turn, then, is irrelevant. Operation of the airplane with respect to it's own limitations is the issue. Not the turn.
One can certainly bring the flaps up immediately after takeoff and while in a turn departing the runway. I've been doing it for years. Put it in context, however, and you'll find that this isn't standard practice in many types of operations. Bringing the flaps up immediately after takeoff, or bringing them up in a turn is perfectly acceptable if done properly and in context.
Whether one is in a heavy aircraft, a high performance aircraft, or not, one need have no concern about raising flaps in a turn, if one does so sensibly and properly. If one doesn't exercise sense or safety, then whether one is in a turn or not is irrelevant.