Fixed non-functional optimistic locking for

work_package editing

Implements https://www.openproject.org/issues/2687