At New York’s Green Haven lockup, barbering students must overcome their machismo — and annoyance — to sharpen their craft.