main: olsr_create_lock_file: fix return value check on 'open' call