Worker in near miss with train as union slams ‘unacceptable risks’