Hmm, to be honest I don't know since I don't know the code of the library how does this work when your library is imported in some.robotfile? how is the thread which changes this flag started? is it a dynamic library which keywords will be differently provided if it would not hang...