That wining noise was probably coming from the warning buzzer like mine did. It cleared itself for a day or two but then reappeared again .
Not saying it's the same identical fault but if you can find my post and read through it you may have the same symptoms/ fault.
My interior light wasn't going off properly,warning buzzer was sounding but muted,quieter if you put on the parking lights or even with the key in ignition and doors shut.
It turned out to be a common blue wire that connects the central locking,warning buzzer ,door aperture switch,and also goes across into the drivers door .mine was this wire that went into the door.it was low to earth and fooling the central locking ecu to turn the interior light on ( or not turn it off !) I unplugged the door connector and it cleared. There was some water in the door connector but even after drying it with a hairdryer the wire was still low so earth so I disconnected it. Everything is working so its either something unimportant,something I've not noticed yet or something that my car doesnt have fitted.
Next time I take door panel off il see where it goes