It takes as long as till the female is ready.
This can be 2 to 3 years or longer.
A lock doesn't mean anything other than the male is trying.