(resending now that the bug is unarchived, sorry for duplicates) this bug was fixed in 3.3.4-1.1 but the 3.4-1 upload didnt acknowledge the NMU, so the patch is lost (it is not present in https://anonscm.debian.org/cgit/pkg-mdadm/mdadm.git/tree/debian/patches) - please either integrate the patch from the NMU or implement a different solution with the same result.
this is, and remains, a critical bug. Thanks for maintaining mdadm!