Flatbush man gets year in prison for homophobic threats on A train