serial: implement open for unix port
serial: implement close for unix port
serial: add _serial_close_handle to check for invalid handles