Replace is_fork_allowed() with prepare_fork()
Optimizing contains_directory()
for #1126 (closed) requires the use of the gRPC channel to buildbox-casd in the main process while the scheduler is running. To allow that, this branch replaces the is_fork_allowed()
safety check with prepare_fork()
, which closes open gRPC channels.