fnctl: unlock file if needed