Added Thread safety to Property class