Needle bar and thread take-up mechanism