Only emit %write_barrier primitive for THREADED_RTS