Fix for maximum capture duration

This update will fix maximum capture duration logic (again):)  
Tested with long recording time up to maximumCaptureDuration  
And with lot of small pause/resume iterations

**NOTE** It'll be good to rename `_lastTimeStamp` to `_offsetFromGlobalClock` or something like this  
Because there's not actually timestamps in the `_lastTimeStamp` variable