Two threads returning value to main()