handle ssh-userkeys allowed_hosts

Signed-off-by: Luca Filipozzi <lfilipoz@emyr.net>
switch to fcntl

Signed-off-by: Luca Filipozzi <lfilipoz@emyr.net>