Where machinery constitutes a danger to persons, the employer or user of machinery concerned shall cause the premises in question to be enclosed, and where such premises are unattended the designated entrances to such premises shall be kept closed and locked.