[common] fix assertion condition in perthreadvalue