TODO: Check possible race condition when claiming a contig and fixing its box pointer