Added SAFE_LISTS define for use with threaded lists