Done this on more than one occasion on more than one aircraft type. Does it cause anything other than a feeling that you could have arranged it bit differently to avoid a brief bit of noise, which you immediately knew full well the cause of? No? What’s the problem? It’s there to alert you that you may be attempting to land with the gear up, which you are obviously not doing having initiated the lowering of the gear.
If I was the PM, was asked for a landing flap setting and I was on the ball enough to see the gear was still in transit, I might mention this fact and enquire if I should possibly delay the flap for a bit to avoid a temporary aural distraction. Most often, I think I’d do it then giggle at the result...
There exists a faction in aviation that tries to make everything as complex and full of unnecessary rules as possible. We must fight back!