Implementing COW on fork()