There are several factors preventing the lockout from ending:
(1) the players have to agree to terms of the CBA,
(2) the court must approve the settlement,
and (3) the players have to decide what to do about re-certification.
When all of those happen, then the lockout *likely* will be lifted. Its "likely" because if they remain a trade association, the owners may not agree to open their doors. If they go to a manual vote (which they've talked about), it could take a week or more to get everyone on-board. The owners could open the doors in anticipation of the re-certification.
But no one knows when/if/how it might all come together.