Fix #107297: Crash on undoing "Use Nodes" step. Fix (unreported) crash on undoing certain type of data deletion (like collections) in some specific cases. Main serious issues were in new handling of embedded IDs in ID swap code (#107297), and in general in lib_query remapping code from `BKE_lib_id_swap_full` in readfile code in undo case which could access other IDs data, when it is not guaranteed to be valid at this point in code. Added an option flag to lib_query code to forbid access to the original ID pointers in such cases.