Make sure fd isn't unspecified if cyon_flush() is called with wrong params