add thread locking to status api