wtmpedit.c: avoid the use of access()

Avoid the use of the 'access()' function because it can lead to a
time-of-check, time-of-use race condition.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>