native: fix signal handlers

* remove race condition
* indicate interrupt status