cfset[io]speed: crash on allocation failure

The cfsetispeed(3) and cfsetospeed(3) functions do not fail, however
the NIF wrapper may fail while trying to allocate memory. Instead of
expecting the caller to test for an error condition, generate a badarg
exception, since the error is likely non-recoverable anyway.