syncing of TLB and RAM translation entries

1) updating RAM- TLB sync before swapping out and checking for dirty
2) added the sync when replacing entry in tlb