Where machinery constitutes a danger to persons, the employer must ensure that the premises in question to be enclosed, and where such premises are unattended the designated entrances to such premises must be kept closed and locked.