Fixing memory leak in cocoa_joystick

Making sure that propsRef and valueRef get released no matter when we
break out of the loop.

Resolves #231.