Fixed synchronized potential infinite loop bug

with BSD ps output
Fix for a build break introduced by Xcode 5.1

See: http://stackoverflow.com/a/22372751/390044