Having just travelled with United LHR-JFK-LHR with a locked suitcase I had no problems or was l asked to unlock my case on check-in at JFK. The lock used was one purchased at LHR T3 so probably wouldn't have been a TSA 'approved' lock.
In fact I was impressed with immigration etc at JFK, no queues or attitude!