OF-754: Lock out user option works incorrectly in some cases

Expired lockout will be now removed. Because that was the problem why the alert icon was still there. It was checking if any lockouts (also expired one) are there and not if scheduled/planned.