Yield after releasing a lock in case we are on a device with limited CPU resources.