A man got his leg trapped between the train and the platform; hundreds of passengers rocked the train to get him unstuck