threads_internal: pass the current 'action' to the internal thread system