Fixing signal delivery according to POSIX

- process should have its own signals structure and signals should be
  pended in that structure if a signal is delivered to a process and
  there is no thread waiting for the signal