flock wrapped wait