kernel - Fix signal delivery races