the focus of GSOC is code, so your thesis would have to be very code heavy for that to work. do you have a topic yet? if not, look at what organizations/projects fit your field of study/interest, and talk to your supervisors if you could write a thesis around one of those.
then (if accepted) you work on the code for GSOC and write your thesis for your school.