Revert "Fix real_stack_size to inspect target thread instead of current thread"

This reverts commit 5affadc95a0e06a4eee4ef63732104dc4e0e195c.