check function used in the HiBON package
Address book for libp2p
Lock file @param filename - file to lock
Check file is locked or unlocked @param filename - file to check @return true if locked
Unlock file @param filename - file to unlock
\struct NodeAddress Struct for node addresses