Move filelock to io_utils.