Agree. 40,000 kms is way too early for wheel bearing issues. This is probably why the dealer has not been able to diagnose it yet. My 5 was at 185,000 kms when the noise started and I drive that car like I stole it.
Possibly something in the wheel hub or brake rotor assembly not torqued correctly? I am just clutching at straws though.