[Core] Fixed a memory leak in _AsyncSignal_ implementation (#1586, thanks to @mario-zelger).