Clear %ebp before entering the new thread.