It is too late for me to dig into this, but I suggest going to google.com with the following search terms:
site:cakewalk.com forum maschine sonar latency
There look to be some good posts there, and you can adjust the search terms to refine them, as needed.
Good luck, I DO recall another poster, Vlada, having worked through similar issues with Sonar and Maschine, so there should be solutions out there for you to review.
Best of luck to you - I am heading out of town in the morning, and will be away for about a week.
Bob Bone