fix race condition with puts

In ruby, `puts` has a race condition you can't get around w. the mutex.  Just call "print" with a string that already has the newline appended and you should be A-OK.