Fix potential issue that cycle iterator does not dispose in multi thread.
Add LICENSE.