Preheat oven to 180°C and cut each sheet of pastry into four even sqaures. Set aside.
Saute onion and garlic in oil on medium heat until tender. Meanwhile, butter four ramekins and line with pastry. Set Aside.
Add flour to onions and garlic and cook, stirring, for 1 minute. Add cream and stock and stir to combine. Add chicken, thyme, curry powder, soy sauce and season to taste with salt and pepper. Allow to simmer until the sauce starts to reduce and thicken.
Remove from heat and divide evenly between prepared ramekins. Add remaining pastry on top, trimming off any excess if desired, and squeeze the edges to seal. Brush with beaten egg and bake for 20-30 minutes or until golden.