Merge "Perfprofd: Factor out threaded handler" into pi-dev