Execute a code block asynchronously by forking