conditional compilation on LOCK_STRING for string mutex usage. still mac issues