Merge "Write bg/fg status updates to kernel for stats."