fix content_hash for windows

check if O_NONBLOCK attribute exists or not