Fix mock post_configure calls in build unit tests