Behind its formal mask, Madrid has a deliciously wild streak, as Dana Facaros discovers