CB-4133 add main thread warning for plugins that run too long

Check the time that plugins  on the main thread and log if the elapsed time is greater than 50ms