Further to my earlier facetious answer, my experience with electricians is that it is up to them to issue a certificate and so their reputation (and more importantly liberty) is on the line if something goes wrong and they are found guilty of manslaughter by certifying something dangerous. So even if one electrician says it's OK, the one you get to do any work and/or issue the Part P or whatever may think differently.
For example they may take into account the size of the shower room, if it's small then there may be more concentration of steam, if large and well ventilated they may think it's OK in an "out of zone" cupboard.
An enclosure sounds dodgy to me, ie if steam or condensation di get in the more small and enclosed the more likely any moisture is to stay there.
If it was me I'd weigh up the cost of building that wall/door to make it in its own big cupboard vs moving it the other side of the existing door. If you do the latter you end up with a bigger bathroom anyway.
Alternatively, does the door at the back open into a garage? If so you could leave it there and just build stud wall in front of the unit so it's basically in a cupboard in the garage.
But best thing is to get the electrician over to give you their opinion on site.