From the Oxford Dictionary:
1. chiefly North American, A cupboard or wardrobe, especially one tall enough to walk into
2. used to reveal a state of secrecy.....
shut (someone) away, especially in private conference or study
late Middle English (denoting a private or small room): from Old French, diminutive of clos 'closed' (see close1).