This locks whatever is in the aFunc - usually lambda with series of calls.