First time solving a race condition / shared memory CTF challenge.