Move valid app_cfg location checking inside app cfg mutex.