Compute blocking duration based on scheduling

Instead of using the duration of the system call. This way, kernel threads that
blocks but do not perform system calls can be monitored.