Once she is gravid he won't lock her anymore. Other things can be a factor tho as well. If he is in a shed cycle he won't do anything for instance.
Just keep pairing them if you are unsure. No harm will come from it (unless your male isn't eating and losing weight)...