Added a new helper function _to_aware_datetime() in lock_service.py that normalizes ORM timestamp values to timezone-aware datetime objects, handling naive datetimes, timezone-aware datetimes, and ISO strings.
Fixed LockService.acquire() to use datetime comparison instead of fragile string comparison for lock expiry detection (bug #10483).
Fixed LockService.renew() similarly to use datetime comparison.
Added a new TDD Behave feature file features/tdd_lock_service_naive_datetime_expiry.feature with a scenario that proves the fix works.
Added step definitions features/steps/tdd_lock_service_naive_datetime_expiry_steps.py.
ISSUES CLOSED: #10483