abrtd: improve parsing of pidfile in create_pidfile()

The previous code isn't very accurate. For one, it doesn't
check strtoul for any errors.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>